<%@page import="java.util.Date"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://www.springframework.org/tags" prefix="spring"%>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<head><title></title></head>
<body>
<form:form commandName="qboardCommand">
<form:errors element="div"/>
<table cellspacing="5" cellpadding="3"> 
	<tr>
		<td align="center" colspan="4">
			<h2>1:1 문의 작성하기</h2>
		</td>
	</tr>
	<tr bgcolor="#e10380">
		<td height="1" colspan="6"></td>
	</tr>
	<tr>
		<td bgcolor="#fadded" align="center">제목</td>
		<td>
			<!-- 문의 카테고리 -->
			<form:select id="qnaTypes" name="qnaTypes" path="bq_category">
				<form:options items="${qnaTypes}" />
			</form:select>
			<!-- 문의 답변여부 = 미답변으로 들어간다 -->
			<form:hidden path="bq_status" value="미답변"/>
			<!-- 문의제목 -->
		</td>
		<td colspan="2">
		<form:input path="bq_title" size="55"/>
			<font color="red"><form:errors path="bq_title" /></font> 
		</td>
	</tr>
	<tr height="2">
	</tr>
	<tr>
			<!-- 작성자/ 패스워드 -->
		<td bgcolor="#fadded" align="center">작성자</td>
		<td colspan="3"><form:hidden path="userid" value="${userid}"/>${userid}</td>
	</tr>
	<tr height="2">
	</tr>
	<tr>
		<td bgcolor="#fadded" align="center">패스워드</td>
		<td colspan="3"><form:password path="bq_passwd" showPassword="false"/>입력하지 않아도 됩니다.</td>
	</tr>
	<tr height="2">
	</tr> 
	<tr>
			<!-- 내용 -->
		<td bgcolor="#fadded" align="center">내용</td>
		<td colspan="3">
			<form:textarea path="bq_content" cols="80" rows="30"/>
			<font color="red"><form:errors path="bq_content" /></font><br>
		</td>
	</tr>
	<tr>
		<td align="right" colspan="4">
			<input type="submit" value="작성완료">
			<input type="button" value="취소" onclick="location.href='qboardlist.do'">
		</td>
	</tr>
</table>
</form:form> 
</body>
</html>